package com.zijin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zijin.entity.Person8Account4;
import com.zijin.mapper.Person8Account4Mapper;
import com.zijin.service.Person8Account4Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 8人4级账户信息Service实现
 * */
@Service
public class Person8Account4ServiceImpl extends ServiceImpl<Person8Account4Mapper, Person8Account4> implements Person8Account4Service {

    @Autowired
    private Person8Account4Mapper person8Account4Mapper;
    /**
     * 根据卡号查找账户信息
     * */
    @Override
    public List<Person8Account4> findAccountByBankNo(String tradeBankNo) {
        LambdaQueryWrapper<Person8Account4> queryWrapper = Wrappers.<Person8Account4>lambdaQuery();
        queryWrapper.eq(Person8Account4::getTradeBankNo, tradeBankNo);
        List<Person8Account4> person8Account4 = person8Account4Mapper.selectList(queryWrapper);
        return person8Account4;
    }
}
